<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
  </script>
  <h1><a href="{:U('index')}">返回列表</a></h1>
    <form class="checkoutform" action="{:U('update')}" method="post">
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right">标题<input style="display:none;" name="id" value="{$brand.id}" /></td>
        <td><label for="title"></label>
          <input name="title" type="text" id="title" size="70" value="{$brand.title}" /></td>
      </tr>
      <tr>
        <td align="right">标题(英文)</td>
        <td><label for="title2"></label>
          <input name="en_title" type="text" id="title2" value="" size="70" />
          <input name="id2" type="hidden" id="id2" value="{$info.id}" /></td>
      </tr>
      <if condition="APP_DEBUG">      </if>
      <tr>
        <td align="right">图片</td>
        <td><input type="hidden" name="img_url" value="{$brand.img_url}" /><iframe width="400" height="40" scrolling="no" frameborder="0" src="{:U('upload')}"></iframe><img src="{:getThumbPath($brand['img_url'])}" id="img_url" height="40" />
        <!--<a href="javascript:void(0);" onclick="del_img();">删除图片</a>-->
          </td>
      </tr>
      <tr>
        <td align="right">内容</td>
        <td> <html:editor id="editor" name="remark" type="UEDIT" style="height:400px; width:100%;"></html:editor></td>
      </tr>
        <tr><td colspan="2" align="center"><button><a href="{:U('index')}">返回</a></button></td>
        </tr>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>
</body></html>